Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default class UserResource {
- get() {
- this.send(['zenek', 'zdzisiu', 'zoltan']);
- }
- post(request) {
- var data = request.data;
- this.send(data);
- }
- static post() {
- return {
- validator: {
- username: {
- presence: true,
- exclusion: {
- within: ["dupa"],
- message: "'%{value}' is not allowed"
- }
- },
- password: {
- presence: true,
- length: {
- minimum: 6,
- message: "must be at least 6 characters"
- }
- }
- },
- allow: '*'
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement