Comments (1)
Hey @tadasv this will becoming a future release. For now, you can add a function at the top of your controller actions to do these sorts of checks.
Something like:
package users
type Controller {
// Deps
}
func (c *Controller) Create(w http.ResponseWriter, r *http.Request) {
if !users.Authenticated(w, r) {
return http.Error(w, "forbidden", 400)
}
}
from bud.
Related Issues (20)
- generated app directory fails linting with golangci-lint HOT 1
- feature idea: detect git short version hash during build and embed into binary HOT 2
- feature suggestion: `bud run` should launch browser (maybe with a flag to enable?) HOT 1
- Error during cURL Installation (Mac) HOT 5
- How to integrate svelte libraries into bud HOT 1
- Rendering HTML from Svelte SSR HOT 1
- invalid: unknown revision since 0.2.6 HOT 2
- Improve bud create logging HOT 2
- How to change default id:int to name:string in generated url path? HOT 1
- How to cross compile linux app binary in my macos machine? HOT 3
- bud run fails right after adding controller following video HOT 18
- Memory Profiling a Bud service HOT 5
- Support for FreeBSD HOT 1
- Ship statically linked binaries? HOT 1
- undefined: sqlite3.Error issue HOT 5
- Dev server breaks as soon as I generate a new controller HOT 2
- Issue with afs on bud run HOT 1
- Add support for skeleton UI HOT 1
- How to use rearmost part of url as parameter? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bud.