Oops.
このコミットが含まれているのは:
コミット
f6c273cb59
|
@ -23,7 +23,7 @@ class InvoiceController extends Controller {
|
|||
}
|
||||
|
||||
// Clients
|
||||
public function getClients() { // /api/rpc/invoice/clients/getclients
|
||||
public function getClients(Request $request) { // /api/rpc/invoice/clients/getclients
|
||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||
|
||||
if ($check == 0) {
|
||||
|
@ -89,7 +89,7 @@ class InvoiceController extends Controller {
|
|||
}
|
||||
|
||||
// Contacts
|
||||
public function getContacts() { // /api/rpc/invoice/contacts/getcontacts
|
||||
public function getContacts(Request $request) { // /api/rpc/invoice/contacts/getcontacts
|
||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||
|
||||
if ($check == 0) {
|
||||
|
@ -141,14 +141,14 @@ class InvoiceController extends Controller {
|
|||
DB::table('inv_clients')
|
||||
->insert([
|
||||
'contact_id' => $add
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
||||
if ($request->isEmployer) {
|
||||
DB::table('inv_employers')
|
||||
->insert([
|
||||
'contact_id' => $add
|
||||
])
|
||||
]);
|
||||
}
|
||||
|
||||
return 'Success!';
|
||||
|
@ -168,7 +168,7 @@ class InvoiceController extends Controller {
|
|||
}
|
||||
|
||||
// Employers
|
||||
public function getEmployers() { // /api/rpc/invoice/employees/getemployers
|
||||
public function getEmployers(Request $request) { // /api/rpc/invoice/employees/getemployers
|
||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||
|
||||
if ($check == 0) {
|
||||
|
|
新しいイシューから参照