free-framework 4.6.6 → 4.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Base Application Routes
|
|
3
3
|
* Powered by Free Framework MVC
|
|
4
|
+
*
|
|
5
|
+
* Note: Routes are now organized in routes/web.free and routes/api.free
|
|
4
6
|
*/
|
|
5
|
-
|
|
6
|
-
get "/" -> Home
|
|
7
|
-
|
|
8
|
-
// Example of a protected view route (Optional Server-Side checking logic can go here)
|
|
9
|
-
get "/dashboard" {
|
|
10
|
-
// You can access req.user if middleware is attached globally or per route
|
|
11
|
-
return Dashboard;
|
|
12
|
-
}
|