Selaa lähdekoodia

added auth routes

lllllllillllllillll 1 vuosi sitten
vanhempi
commit
9c41839852
2 muutettua tiedostoa jossa 6 lisäystä ja 5 poistoa
  1. 2 2
      README.md
  2. 4 3
      router/index.js

+ 2 - 2
README.md

@@ -2,10 +2,10 @@
 <h4 align="center">DweebUI Beta v0.50 ( :fire: Experimental :fire: )</h4>
 <h3 align="center">Free and Open-Source WebUI For Managing Your Containers.</h3>
 <p align="center">
-    <a href="#"><img src="https://img.shields.io/github/stars/lllllllillllllillll/DweebUI?style=flat"/></a>
+    <a href=""><img src="https://img.shields.io/github/stars/lllllllillllllillll/DweebUI?style=flat"/></a>
     <a href="https://github.com/lllllllillllllillll"><img src="https://img.shields.io/github/commit-activity/y/lllllllillllllillll/DweebUI"/></a>
+    <a href="https://github.com/lllllllillllllillll/DweebUI"><img src="https://img.shields.io/github/last-commit/lllllllillllllillll/DweebUI%2Fdev"/></a>
     <a href="https://hub.docker.com/r/lllllllillllllillll/dweebui"><img src="https://img.shields.io/docker/pulls/lllllllillllllillll/dweebui"/></a>
-    <a href="https://github.com/lllllllillllllillll/DweebUI"><img src="https://img.shields.io/github/languages/top/lllllllillllllillll/DweebUI"/></a>
     <a href="https://github.com/lllllllillllllillll/DweebUI/blob/main/LICENSE"><img src="https://img.shields.io/github/license/lllllllillllllillll/DweebUI"/></a>
     <a href="https://www.reddit.com/r/dweebui"><img src="https://img.shields.io/badge/reddit-orange"/></a>
     <a href="https://www.buymeacoffee.com/lllllllillllllillll"><img src="https://img.shields.io/badge/-buy_me_a%C2%A0coffee-gray?logo=buy-me-a-coffee"/></a>

+ 4 - 3
router/index.js

@@ -59,10 +59,11 @@ router.post("/action/:action", auth, Action);
 router.post("/updatePermissions", auth, UpdatePermissions);
 
 router.get("/logs", Logs);
+
 router.get("/modals", Modals);
-router.get("/stats", Stats);
-router.get("/chart",  Chart);
-router.get("/sse_event", SSE);
+router.get("/stats", auth, Stats);
+router.get("/chart", auth, Chart);
+router.get("/sse_event", auth, SSE);
 router.get("/containers", Containers);
 router.get("/card", Card);
 router.get("/new_cards", updateCards);